﻿<controls:MetroWindow x:Class="monitor_server_2_WPF.Windows.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="LoginWindow" Height="150" Width="280" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" IsTabStop="False">

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <!--<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />-->
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/CustomStylesDictionary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="10"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="20"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
            <Label Name="LoginLabel" Foreground="White">Login</Label>
            <TextBox Name="LoginBox" Width="100" TextChanged="LoginBox_OnTextChanged" IsTabStop="True" TabIndex="0"/>
            <Button Name="AcceptButton" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="0,14,0,0" TabIndex="2" Click="AcceptButton_OnClick">
                <TextBlock Name="AcceptButtonContentLabel" Margin="6,3">Accept</TextBlock>
            </Button>
        </StackPanel>
        <StackPanel Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
            <Label Name="PasswordLabel" Foreground="White">Password</Label>
            <TextBox Name="PasswordBox" Width="100" TextChanged="PasswordBox_OnTextChanged" TabIndex="1"/>
            <Button Name="CancelButton" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="0,14,0,0" TabIndex="3" Click="CancelButton_OnClick">
                <TextBlock Name="CancelButtonContentLabel" Margin="6,3">Cancel</TextBlock>
            </Button>
        </StackPanel>
        <StatusBar Name="StatusBar" Grid.ColumnSpan="2" Grid.Column="0" Grid.Row="2" IsTabStop="False">
            <StatusBarItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <TextBlock Name="StatusLabel" VerticalAlignment="Center" Foreground="White">Ok</TextBlock>
            </StatusBarItem>
        </StatusBar>
    </Grid>
</controls:MetroWindow>
